<%@ page import="com.bafa.objects.season.Season" %>
<%@ page import="com.bafa.objects.season.Division" %>
<%@ page import="com.bafa.objects.team.Team" %>
<%@ page import="com.bafa.objects.team.TeamSeasonStats" %>
<%@ page import="com.bafa.objects.team.TeamStats" %>
<%@ page import="com.bafa.objects.player.*" %>
<%@ page import="com.bafa.objects.*" %>
<%@ page import="com.bafa.middle.*" %>
<%@ page import="com.bafa.front.presentationbeans.*" %>
<%@ page import="com.bafa.front.utils.*" %>
<%@ page import="java.util.*" %>

   <% AdminUser admin = (AdminUser)session.getAttribute("LOGGEDON");
   TeamListBean teams = (TeamListBean)request.getAttribute("TEAMS");
   MatchListBean disputedResults = (MatchListBean)request.getAttribute("DISPUTEDRESULTS");
   
%>
<%SiteBean siteBean = (SiteBean)session.getAttribute("SITEBEAN");%>
<% Report report = ReportServices.getReport("MAINNEWS");   
if(report==null){report = new Report();
report.setReport("");
report.setAuthor("Author");
report.setTitle("Headline");}
%>
<% SeasonBean season = (SeasonBean)session.getAttribute("THISSEASON");   
   
%>
<% Match[] results = (Match[])request.getAttribute("FIXTURES");
%>
<%String thisPage = "adminhome";%>

<script  src="script/niftycube.js" type="text/javascript" ></script>
	<script>
	NiftyLoad=function(){
	     

Nifty("ul#dueResults h3","top");
Nifty("ul#dueResults div","bottom same-height");
Nifty("ul#disputedResults h3","top");
Nifty("ul#disputedResults div","bottom same-height");
Nifty("ul#report h3","top");
Nifty("ul#report div","bottom same-height");
Nifty("ul#fixture h3","top");
Nifty("ul#fixture div","bottom same-height");

}

</script>
<script language="JavaScript" type="text/javascript" src="wysiwyg.js"></script>

<script language="javascript" src="chainedselects.js">

/***********************************************
* Chained Selects script- By Xin Yang (http://www.yxscripts.com/)
* Script featured on/available at http://www.dynamicdrive.com/
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<style type="text/css">

ul#fixture, ul#fixture li{margin:0;padding:0;list-style:none}
	ul#fixture li{float:left;width:230px;margin:0 10px 10px 0}
	ul#fixture h3{font: bold  Verdana,sans-serif;
	    text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
	ul#fixture p{margin:0;padding:5px 8px 15px}
	ul#fixture div{background:#<%=siteBean.getDivbackground()%>}
	li#fixture div{border:2px solid #D2D2D2}

ul#dueResults, ul#dueResults li{margin:0;padding:0;list-style:none}
	ul#dueResults li{float:left;width:230px;margin:0 10px 10px 0}
	ul#dueResults h3{font: bold  Verdana,sans-serif;
	    text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
	ul#dueResults p{margin:0;padding:5px 8px 15px}
	ul#dueResults div{background:#<%=siteBean.getDivbackground()%>}
	li#dueResults div{border:2px solid #D2D2D2}

ul#disputedResults, ul#disputedResults li{margin:0;padding:0;list-style:none}
	ul#disputedResults li{float:left;width:230px;margin:0 10px 10px 0}
	ul#disputedResults h3{font: bold  Verdana,sans-serif;
	    text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
	ul#disputedResults p{margin:0;padding:5px 8px 15px}
	ul#disputedResults div{background:#<%=siteBean.getDivbackground()%>}
	li#disputedResults div{border:2px solid #D2D2D2}
ul#report, ul#report li{margin:0;padding:0;list-style:none}
	ul#report li{float:left;width:500px;margin:0 10px 10px 0}
	ul#report h3{font: bold  Verdana,sans-serif; text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
	ul#report p{margin:0;padding:5px 8px 15px}
	ul#report div{background:#<%=siteBean.getDivbackground()%>}
	li#report div{border:2px solid #D2D2D2}	
	
</style>

<script>
function gone(form){
   window.location = form.value;
}


</script>


<script type="text/javascript" src="calendarDateInput.js">

/***********************************************
* Jason's Date Input Calendar- By Jason Moon http://calendar.moonscript.com/dateinput.cfm
* Script featured on and available at http://www.dynamicdrive.com
* Keep this notice intact for use.
***********************************************/

</script>

<p><h4>Administration</h4>


<form>
<select name="example" size="1" onChange="gone(this)">
<option>Edit Team Details</option>
<%for(int i=0;i<teams.teams().length;i++){TeamBean team = teams.teams()[i]; %>
<option value="master?page=teamadmin&teamId=<%=team.getId()%>"><%=team.getName()%></option>
<%}%>
</select>
</form>


<br/>
</p>
<br/>
<br/>


<h4>Alerts</h4>

<br/>

 <img src="o.gif" height="10px" width="500px"/>
<h4>Communication</h4>
<form method="post" name="resultform" action="addmainnews.bafa">

<ul id="report"><li id="report"><h3 class="avlh">Front Page Story</h3>

 
<div class="sad">
<br/>
<input type="text" name="author" onFocus="javascript:this.value=''" value="<%=report.getAuthor()%>"/> <input type="text" onFocus="javascript:this.value=''" name="title" value="<%=report.getTitle()%>" size="45"/>
<br/>
<br/>
<textarea id="textarea1"  name="report" style="height: 150px; width: 450px;"><%=report.getReport()%></textarea>
  <input class='leftbutton' <%if(!JSPUtils.isUpdatesEnabled()){%>disabled<%}%> type='submit' name='submit' value='Update' /><%if(!JSPUtils.isUpdatesEnabled()){%><i>This is editable in the full version</i><%}%>
  <script language="javascript1.2">
    generate_wysiwyg('textarea1');
  </script>
  <br/>
  <br/>
</div>

  </li>
  </ul>
</form>
<script>
initListGroup('divisions', document.forms["fixtureForm"].division, document.forms["fixtureForm"].teamA, document.forms["fixtureForm"].teamB, 'cs');
</script>

